package com.yic.module.system.convert.logger;

import java.util.*;

import com.yic.framework.common.pojo.PageResult;

import com.yic.module.system.api.logger.dto.ExternalLogCreateReqDTO;
import com.yic.module.system.controller.admin.logger.vo.externallog.ExternalLogCreateReqVO;
import com.yic.module.system.controller.admin.logger.vo.externallog.ExternalLogExcelVO;
import com.yic.module.system.controller.admin.logger.vo.externallog.ExternalLogRespVO;
import com.yic.module.system.controller.admin.logger.vo.externallog.ExternalLogUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.yic.module.system.dal.dataobject.logger.ExternalLogDO;

/**
 * 第三方API调用日志 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface ExternalLogConvert {

    ExternalLogConvert INSTANCE = Mappers.getMapper(ExternalLogConvert.class);

    ExternalLogDO convert(ExternalLogCreateReqVO bean);

    ExternalLogDO convert(ExternalLogUpdateReqVO bean);

    ExternalLogRespVO convert(ExternalLogDO bean);

    List<ExternalLogRespVO> convertList(List<ExternalLogDO> list);

    PageResult<ExternalLogRespVO> convertPage(PageResult<ExternalLogDO> page);

    List<ExternalLogExcelVO> convertList02(List<ExternalLogDO> list);

    ExternalLogCreateReqVO convert01(ExternalLogCreateReqDTO externalLogCreateReqDTO);

}
